// 路由器
//路由规则  
const express = require('express');
//1. 引入 路由文件
const homeRouter = require('./routes/homeRouter');
const adminRouter = require('./routes/adminRouter');
//
const app = express();
//2. 设置和使用中间件
app.use(homeRouter, adminRouter);

app.listen(80, () => {
    console.log('服务已经启动....');
});